package com.xiangxiangjd.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 *  申领和物品中间表
 * </p>
 *
 * @author 肖守凯
 * @since 2021-11-08
 */
@TableName("claim_goods")
@ApiModel(value="ClaimGoods对象", description=" 申领和物品中间表")
@Data
public class ClaimGoods extends Model<ClaimGoods> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    @ApiModelProperty(value = "申领单号id")
    @TableField("claim_id")
    private Integer claimId;

    @ApiModelProperty(value = "申领的物品id")
    @TableField("goods_id")
    private String goodsId;

    @ApiModelProperty(value = "耗材申领数量")
    @TableField("goods_count")
    private Double goodsCount;

    //  物品信息
    @ApiModelProperty(value = "申领物品集合")
    @TableField(exist = false)
    Goods goods;

}
